package com.zablert.mainactivity.chat

import zyc.zalbert.view.recycleview.CoreProviderMultiAdapter
import zyc.zalbert.view.recycleview.holder.CoreViewHolder

class ChatAdapter : CoreProviderMultiAdapter<ChatParam>() {
    init {
        addItemProvider(LeftChatItemProvider())
        addItemProvider(RightChatItemProvider())
    }

    override fun getItemViewType(position: Int): Int {
        return getItem(position)?.itemType ?: ChatItemType.MSG_UN_SUPPORTED
    }

}